package com.dhcc.DRGsHosp.facade.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @ClassName: MrqScoreDTO  
 * @Description ：病案得分总表，存储病案表的ID，用于关联病案表；存储病案的总得分以及“患者基本信息”、“住院过程信息”、“诊疗信息”、“费用信息”四大部分的得分等。    
 * @Date: 2018年7月26日 下午3:34:41  
 * @Author QiaoYiLong 
 * @Version 3.1.1 DHC-DRG
 */
public class MrqScoreDTO implements Serializable {

	private static final long serialVersionUID = 3966375676990016897L;

	//表主键	
	private String pmainIndex;

	//机构编码
	private String orgCode;

	//出院科室编码
	private String depCode;
	
	//病案总得分
	private Double totalScore;
	
	//评定等级。1-优；2-良；3-中；4-差
	private String ratingLevel;

	//校验时间
	private Date checkDate;
	
	//出院日期
	private Date outDate;

	//完整性标识
	private String completeFlag;


	public String getPmainIndex() {
		return pmainIndex;
	}

	public void setPmainIndex(String pmainIndex) {
		this.pmainIndex = pmainIndex;
	}

	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	public String getDepCode() {
		return depCode;
	}

	public void setDepCode(String depCode) {
		this.depCode = depCode;
	}

	public Double getTotalScore() {
		return totalScore;
	}

	public void setTotalScore(Double totalScore) {
		this.totalScore = totalScore;
	}

	public String getRatingLevel() {
		return ratingLevel;
	}

	public void setRatingLevel(String ratingLevel) {
		this.ratingLevel = ratingLevel;
	}

	public Date getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}

	public Date getOutDate() {
		return outDate;
	}

	public void setOutDate(Date outDate) {
		this.outDate = outDate;
	}

	public String getCompleteFlag() {
		return completeFlag;
	}

	public void setCompleteFlag(String completeFlag) {
		this.completeFlag = completeFlag;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((pmainIndex == null) ? 0 : pmainIndex.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MrqScoreDTO other = (MrqScoreDTO) obj;
		if (pmainIndex == null) {
			if (other.pmainIndex != null)
				return false;
		} else if (!pmainIndex.equals(other.pmainIndex))
			return false;
		return true;
	}
}
